package com.lagou.order;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @BelongProject: lagou-parent
 * @author: 胡恺恺
 * @createTime: 2021/1/29  13:47
 * @Description:
 */
@SpringBootApplication(scanBasePackages = {"com.lagou.common.feign","com.lagou.order"})
//设置熔断后一定要设置@SpringBootApplication所要扫描的包时，要将所有需要的包到加入进去，非常重要，否则会报找不到回退方法的类声明的异常
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.lagou.common.feign")
@MapperScan("com.lagou.order.mapper")
public class OrderApllication9101 {

    public static void main(String[] args) {

        SpringApplication.run(OrderApllication9101.class, args);
    }
}
